import {Session} from "/@/utils/storage";
export const tableOption = {
    border: true,
    stripe: true,
    menuAlign: 'center',
    index: true,
    indexLabel: '序号',
    align: 'center',
    searchMenuSpan: 6,
    labelWidth: '160',
    searchSpan:6,
    searchEnter:true,
    indexWidth: '60',
    selection: true,
    searchLabelWidth: 'auto',
  searchMenuPosition: 'left',
    column: [
        {
            type: 'input',
            label: '维修模版名称',
            prop: 'repairTemplateName',
            overHidden: true,
            searchLabelWidth:110,
            search: true,
            rules: [
                {
                    required: true,
                    message: '请输入维修模版名称',
                    trigger: 'blur'
                }
            ]
        },
        {
            type: 'select',
            label: '型号名称',
            filterable: true,
            search:true,
            dicUrl:'api/admin/accessProduct/page?current=1&size=12&descs=&ascs=',
            dicHeaders: {
                authorization: 'Bearer ' + Session.get('token'),
            },
            props:{
                label:'name',
                value:'id'
            },
            dicFormatter: (data) => {
              return data.data.records
            },
            prop: 'modelName',
            overHidden: true,
            rules: [
                {
                    required: true,
                    message: '请输入型号名称',
                    trigger: 'blur'
                }
            ]
        },
        {
            type: 'input',
            label: '型号编码',
            prop: 'modelCode',
            overHidden: true,
        },
        {
            type: 'input',
            label: '生产厂家',
            prop: 'produceFactory',
            hide:true,
        },
        {
            type: 'input',
            label: '内部负责人',
            prop: 'headInterior',
            hide:true,
            rules: [
                {
                    required: true,
                    message: '请输入内部负责人',
                    trigger: 'blur'
                }
            ]
        },
        {
            type: 'input',
            label: '负责人电话',
            prop: 'headPhone',
            hide:true,

        },
        {
            type: 'input',
            label: '维修单位',
            prop: 'repairUnit',
            overHidden: true,
            hide:true,

        },
        {
            type: 'input',
            label: '维修人',
            prop: 'repairPeople',
            overHidden: true,
            hide:true,

        },
        {
            type: 'input',
            label: '维修人电话',
            prop: 'repairPeoplePhone',
            hide: true,
        },
        {
            type: 'input',
            label: '创建时间',
            prop: 'createTime',
            addDisplay:false,
            editDisplay:false
        },
        {
            type: 'input',
            label: '修改时间',
            prop: 'updateTime',
            addDisplay:false,
            editDisplay:false
        },
    ]
}
